const Service = require('node-windows').Service;
let svc = new Service({
    name:'VUE Start',
    description: '使用npm启动vue项目，端口为5200',
    script: 'C:\\Users\\Administrator\\Desktop\\vue-npm_start\\start.js',
    nodeOptions: [
      '--harmony',
      '--max_old_space_size=4096'
    ]

  });
  svc.on('install',function(){
    svc.start();
  });
   
  svc.install();